package com.pure.common.factory;

import com.pure.common.enums.PriceType;
import org.apache.commons.lang3.ObjectUtils;

public class PriceImportHistory2AffectedPriceSpec extends AffectedPriceSpec {

    private PriceImportHistory delegatee;

    public PriceImportHistory2AffectedPriceSpec(PriceImportHistory delegatee) {
        this.delegatee = delegatee;
    }

    public static PriceImportHistory2AffectedPriceSpec wrap(PriceImportHistory delegatee) {
        return new PriceImportHistory2AffectedPriceSpec(delegatee);
    }

    @Override
    public String getSellerDivision() {
        return ObjectUtils.firstNonNull(delegatee.getSellerDivision(), "");
    }

    @Override
    public void setSellerDivision(String sellerDivision) {
        delegatee.setSellerDivision(sellerDivision);
    }

    @Override
    public String getSapMaterialNo() {
        return ObjectUtils.firstNonNull(delegatee.getSapMaterialNo(), "");
    }

    @Override
    public void setSapMaterialNo(String sapMaterialNo) {
        delegatee.setSapMaterialNo(sapMaterialNo);
    }

    @Override
    public String getTerminal() {
        return ObjectUtils.firstNonNull(delegatee.getTerminal(), "");
    }

    @Override
    public void setTerminal(String terminal) {
        delegatee.setTerminal(terminal);
    }

    @Override
    public String getCompany() {
        return ObjectUtils.firstNonNull(delegatee.getCompany(), "");
    }

    @Override
    public void setCompany(String company) {
        delegatee.setCompany(company);
    }

    @Override
    public String getDistrict() {
        return ObjectUtils.firstNonNull(delegatee.getDistrict(), "");
    }

    @Override
    public void setDistrict(String district) {
        delegatee.setDistrict(district);
    }

    @Override
    public String getCity() {
        return ObjectUtils.firstNonNull(delegatee.getCity(), "");
    }

    @Override
    public void setCity(String city) {
        delegatee.setCity(city);
    }

    @Override
    public String getProvince() {
        return ObjectUtils.firstNonNull(delegatee.getProvince(), "");
    }

    @Override
    public void setProvince(String province) {
        delegatee.setProvince(province);
    }

    @Override
    public PriceType getPriceType() {
        return delegatee.getPriceType();
    }

    @Override
    public void setPriceType(PriceType priceType) {
        delegatee.setPriceType(priceType);
    }

    @Override
    public String getUnit() {
        return ObjectUtils.firstNonNull(delegatee.getUnit(), "");
    }

    @Override
    public void setUnit(String unit) {
        delegatee.setUnit(unit);
    }

    @Override
    public String getChannel() {
        return ObjectUtils.firstNonNull(delegatee.getChannel(), "");
    }

    @Override
    public void setChannel(String channel) {
        delegatee.setChannel(channel);
    }

    @Override
    public String getSaleType() {
        return ObjectUtils.firstNonNull(delegatee.getSaleType(), "");
    }

    @Override
    public void setSaleType(String saleType) {
        delegatee.setSaleType(saleType);
    }

    @Override
    public String getPaymentMethod() {
        return ObjectUtils.firstNonNull(delegatee.getPaymentMethod(), "");
    }

    @Override
    public void setPaymentMethod(String paymentMethod) {
        delegatee.setPaymentMethod(paymentMethod);
    }

    @Override
    public String getDeliveryMethod() {
        return ObjectUtils.firstNonNull(delegatee.getDeliveryMethod(), "");
    }

    @Override
    public void setDeliveryMethod(String deliveryMethod) {
        delegatee.setDeliveryMethod(deliveryMethod);
    }

    @Override
    public String getCustomerLevel() {
        return ObjectUtils.firstNonNull(delegatee.getCustomerLevel(), "");
    }

    @Override
    public void setCustomerLevel(String customerLevel) {
        delegatee.setCustomerLevel(customerLevel);
    }

    @Override
    public String getDiscountType() {
        return ObjectUtils.firstNonNull(delegatee.getDiscountType(), "");
    }

    @Override
    public void setDiscountType(String discountType) {
        delegatee.setDiscountType(discountType);
    }

    @Override
    public String getSellerName() {
        return ObjectUtils.firstNonNull(delegatee.getSellerName(), "");
    }

    @Override
    public void setSellerName(String sellerName) {
        delegatee.setSellerName(sellerName);
    }

    @Override
    public Long getAccountNo() {
        return ObjectUtils.firstNonNull(delegatee.getAccountNo(), 0L);
    }

    @Override
    public void setAccountNo(Long accountNo) {
        delegatee.setAccountNo(accountNo);
    }
}
